home *** CD-ROM | disk | FTP | other *** search
/ Danny Amor's Online Library / Danny Amor's Online Library - Volume 1.iso / html / faqs / faq / distributions / macros < prev    next >
Encoding:
Text File  |  1995-07-25  |  7.2 KB  |  247 lines

  1. Subject: News Administration Macros for Geographic Distributions
  2. Newsgroups: news.admin.misc,news.lists,news.answers
  3. From: mdl@wndrsvr.la.ca.us (Mr. Distribution Lists)
  4. Date: Sun, 21 Aug 1994 09:31:16 GMT
  5.  
  6.  
  7. Archive-name: distributions/macros
  8. Version: $Id: dist.macro,v 1.16 1994/08/10 03:24:17 mdl Exp mdl $
  9.  
  10.  
  11. Many many thanks to Sean Goggin for donating his time and energy to
  12. producing this list for the rest of us!
  13.  
  14. Anyone should feel free to improve upon this excellent starting point 
  15. provided by Sean, and send in an updated copy.  I am posting it as is.  
  16. Thanks again Sean!!!
  17.  
  18.  
  19. ***************************************************************************
  20.  
  21. If you wish use the valid distribution list to fix news problems you may
  22. wish to :
  23.     - integrate all distributions in to one list
  24.     - ask postmasters of sites with conflicting distributions
  25.       to use an other names
  26.         EG
  27.             uw  uwashington
  28.             uw  uwaterloo
  29.     - build awk programs to parse format into m4 marcos
  30.  
  31. Enclosed is version 1.1 of the marcos I sent you.
  32. I look forward to any comments.
  33.  
  34. The current format is difficult to parse with awk, lex and yacc
  35. will likly be needed to parse it.
  36.  
  37. # m4 macros by Sean Goggin - this is in the public domain
  38. #
  39. #
  40. #na: North America/Mexico*,CAN,USA
  41. define(NA, `CAN,USA')
  42.  
  43. #
  44. #usa: United States of America/NA
  45. #    rg: Rio Grande Valley/New Mexico*/USA
  46. #    pnw: Pacific North West/Idaho*,OR,WA/USA
  47. define( PNW,`pnw,OR,WA')
  48.  
  49. #    ne: New England/Connecticut*,Massachusetts*,Maine*,New Hampshire*,Rhode Island*,Vermont*/USA
  50. #    capdist: Capital District/Albany*,Schenectady*,Troy*/NY/USA
  51. #
  52. #    az: Arizona/USA
  53. #    hsv: Huntsville/Alabama*/USA
  54. #    ca: California/USA
  55. #        ba: San Francisco Bay Area/CA/USA
  56. #        chico: Chico/CA/USA
  57. #        la: Los Angeles county/CA/USA
  58. #        oc: Orange County/CA/USA
  59. #        sac: Sacramento/CA/USA
  60. #        sba: Santa Barbara/CA/USA
  61. #        scruz: Santa Cruz/CA/USA
  62. #        sdnet: San Diego county/CA/USA
  63. define( CA,`ca,ba,chico,la,oc,sac,sba,scruz,sdnet')
  64. #    co: Colorado/USA
  65. #    dc: Washington D.C./USA
  66. #    fl: Florida/USA
  67. #        mlb: Melbourne/BERVARD/FL/USA
  68. #        miami: Miami/FL/USA
  69. #        oau: Orlando/FL/USA
  70. #        sarasota: Sarasota/FL/USA
  71. #        tba: Tampa Bay Area/FL/USA
  72. define( FL,`fl,mlb,miami,oau,sarasota,tba')
  73. #    ga: Georgia/USA
  74. #        atl: Atlanta/GA/USA
  75. define( GA,`ga,atl')
  76. #    ia: Iowa/USA
  77. #        iowacity: Iowa City/IA/USA
  78. define( IA,`ia,iowacity')
  79. #    il: Illinois/USA
  80. #        chi: Chicago/IL/USA
  81. define( IL,`il,chi')
  82. #    in: Indiana/USA
  83. #    ks: Kansas/USA
  84. #        mhk: Manhattan/KS/USA
  85. #        kc: Kansas City/Kansas City metro*/USA
  86. define( KS,`ks,mhk,kc')
  87. #    ky: Kentucky/USA
  88. #    lou: Louisiana/USA
  89. #        neworleans: New Orleans/LOU/USA
  90. define( LOU,`lou,neworleans')
  91. #    md: Maryland/USA
  92. #    mi: Michigan/USA
  93. #        aa: Ann Arbor/MI/USA
  94. #        det: Detroit/MI/USA
  95. define( MI,`mi,aa,det')
  96. #    mn: Minnesota/USA
  97. #    mo: Missouri/USA
  98. #        stl: St. Louis/MO/USA
  99. define( MO,`mo,stl')
  100. #    nc: North Carolina/USA
  101. #        triangle: Research Triangle Park area/NC/USA
  102. define( NC,`nc,triangle')
  103. #    nj: New Jersey/USA
  104. #        bergen: Bergen County/NJ/USA
  105. define( NJ,`nj,bergen')
  106. #    ny: New York/USA
  107. #        nyc: New York City/NY/USA
  108. #        wny: Western NY(Rochester,Buffalo)/NY/USA
  109. define( NY,`ny,nyc,wny')
  110. #    oh: Ohio/USA
  111. #        akron: Akron/OH/USA
  112. #        cle: Cleveland/OH/USA
  113. #        cmh: Columbus/OH/USA
  114. define( OH,`oh,akron,cle,cmh')
  115. #    ok: Oklahoma/USA
  116. #    or: Oregon/USA
  117. #        pdx: Portland/OR/USA
  118. define(    OR,`or,pdx')
  119. #    pa: Pennsylvania/USA
  120. #        pgh: Pittsburgh/PA/USA
  121. #        phl: Philadelphia/PA/USA
  122. define( PA,`pa,pgh,phl')
  123. #    tn: Tennessee/USA
  124. #    tx: Texas/USA
  125. #        austin: Austin/TX/USA
  126. #        houston: Houston/TX/USA
  127. #        dfw: Dallas-Ft Worth/TX/USA
  128. define( TX,`tx,austin,houston,dfw')
  129. #    utah: Utah/USA
  130. #    va: Virginia/USA
  131. #        tdw: Tidewater/VA/USA
  132. define( VA,`va,tdw')
  133. #    wa: Washington/USA
  134. #        sea: Seattle/WA/USA
  135. #        seattle: Seattle/WA/USA
  136. define( WA,`wa,sea,seattle')
  137. #    wi: Wisconsin/USA
  138. #        milw: Milwaukee/WI/USA
  139. define( WI,`wi,milw')
  140. define( USA,`rg,PNW,ne,capdist,az,hsv,CA,co,dc,FL,GA,IA,IL,KS,ky,LOU,md,MI,mn,MO,NC,NJ,NY,OH,OR,PA,tn,TX,utah,VA,WA,WI')
  141.  
  142. #
  143. #aus: Australia
  144. #can: Canada
  145. #    ab: Alberta/CAN
  146. #        edm: Edmonton/AB/CAN
  147. define( AB,`ab,edm')
  148. #    bc: British Columbia/CAN
  149. #    ns: Nova Scotia/CAN
  150. #        hfx: Halifax/NS/CAN
  151. define( NS,`ns,hfx')
  152. #    qc: Quebec/CAN
  153. #        mtl: Montreal/QC/CAN
  154. #    atl: Atlantic Provinces/NS, New Brunswick*, Prince Edward Island*, Newfoundland*/CAN
  155. #    ont: Ontario/CAN
  156. #        kw: Kitchener-Waterloo/ONT/CAN
  157. #        ott: Ottawa/ONT/CAN
  158. #        tor: Toronto/ONT/CAN
  159. #        kingston: Kingston/ONT/CAN/NA
  160. define(    ONT,`ont,kw,ott,tor,kingston')
  161. define( CAN,`AB,bc,NS,qc,atl,ONT')
  162.  
  163. #ch: Switzerland
  164. #fj: Japan
  165. #ie: Ireland
  166. #il: Israel
  167. #na: Namibia
  168. #nlnet: Netherlands
  169. #no: Norway
  170. #nz: New Zealand
  171. #    wgtn: Wellington/NZ
  172. define( NZ,`nz,wgtn')
  173. #se: Sweden
  174. #sfnet: Finland
  175. #su: Soviet Union
  176. #    relcom: Relcom/Russia*/SU
  177. define( SU,`su,relcom')
  178. #uk: United Kingdom
  179. #    cam: Cambridge/England*/UK
  180. #    cov: Coventry/England*/UK
  181. #    lon: The London UK area/England*/UK
  182. #    midlands: Midlands Area/England*/UK
  183. #    scot: Scotland/UK
  184. #        ed: Edinburgh/SCOT/UK
  185. define( SCOT,`scot,ed')
  186. define( UK,`uk,cov,lon,midlands,SCOT')
  187. #es: Spain/EUNET
  188. #za: South Africa
  189. #    uninet: University Net/ZA
  190. define( ZA,`za,uninet')
  191. #
  192. #belwue: Baden-Wuerttemberg/Germany/Europe*
  193. #stgt: Stuttgart/BELWUE/Germany*/Europe
  194. #ka: Karlsruhe/Beden-Wuerttemberg/Germany/Europe
  195.  
  196. # Only the ME line is mandatory; the others are just samples of how to do
  197. # things.  Virtually everything will need modifying for your local feeds
  198. # and newsgroups.
  199.  
  200. # line indicating what we are willing to receive; note local groups on end
  201.  
  202. # You may use a macro defined above to express all the valid local groups
  203. # for an region.
  204. #
  205. # For example the "CAN" in the next line will be converted all valid
  206. # Canadian regional groups
  207. ME:comp,news,sci,rec,misc,soc,talk,CAN
  208.  
  209. # sample insignificant feed not using batching (for special situations only)
  210. lemsys:alt.binaries.pictures.erotica.female::uux - -r -gd lemsys!rnews
  211. huey:news.config,to.huey/all::uux - -r -gd huey!rnews
  212.  
  213. # sample of mailing newsgroups to someone (note distribution)
  214. daisy:soc.women,soc.couples/all::mail daisy@duck
  215.  
  216. # sample small feed using batching
  217. gladstone:comp.protocols.tcp-ip,rec.aviation/all:f:
  218.  
  219. # sample major batched feed, including (unnecessary) explicit file name
  220. dewey:comp,news,sci,rec,misc,soc,talk,to.dewey,can,ont,tor,ut/all:f:dewey/togo
  221.  
  222. # sample long-haul feed; note no local groups
  223. donald:comp,news,sci,rec,misc,soc,talk,to.donald/all:f:
  224.  
  225. # sample local-postings-only feed direct to major site (gets them out fast)
  226. scrooge:comp,news,sci,rec,misc,soc,talk,to.scrooge/all:Lf:
  227.  
  228. # sample ihave/sendme link
  229. # NOTE, this is the old ihave/sendme, not related to NNTP in any way.
  230. # Send ihave telling louie what we have -- batcher turns the batch into a
  231. # giant control message and posts it to "to.louie".  (#1)
  232. louie:comp,news,sci,rec,misc,soc,talk,!to/all,!sendme,!ihave:I:louie.ihave/togo
  233. # Send sendme in response to ihave from louie -- again, turned by batcher
  234. # into giant control message posted to "to.louie".  (#3)
  235. louie-send-ids:to.louie/ihave:I:louie.sendme/togo
  236. # Transmit said giant control messages by normal batching.  (#2,#4)
  237. louie-ctl:to.louie/all,!sendme,!ihave:f:louie/togo
  238. # Send articles in response to sendme messages from louie. (#5)
  239. louie-real:to.louie/sendme:f:louie/togo
  240. # Actually the last two could be combined.
  241.  
  242. # also, since ihave/sendme is slow, send local postings to louie without
  243. # waiting (beware ihave/sendme)
  244. louie-local:comp,news,sci,rec,misc,soc,talk/all,!sendme,!ihave:L:
  245.  
  246.  
  247.